Missing ;s
Whitespace
Get rid of some instances of layerkey
Function name
Get rid of more instances of layerkey
Get rid of even more instances of layerkey
Get rid of railsIdLookup
Get rubyId more directly
Whitespace
Reduce duplicate data structs
Formatting
Formatting
Var name
Fix crash
Reorder functions
Need space in this code
And a comma
Use correct syntax
Whitespace
Simplify logic