Fixing js property list bug